#!/bin/sh

ROOTID="0"

if [ $# -lt 1 ]; then
    echo "no args supplied (specify wpa_sup.conf you dumbo)"
elif [ "$(id -u)" -ne "$ROOTID" ]; then
    echo "no root privileges"
else
    ip link set wlp3s0 up &&
    wpa_supplicant -i wlp3s0 -D nl80211 -c $1 -B
#    dhcpcd
#    ping suckless.org
fi
